]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overviewControls: Only import STARTUP_ANIMATION_TIME from layout
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Thu, 27 Nov 2025 10:27:35 +0000 (11:27 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 14 Jan 2026 17:58:59 +0000 (18:58 +0100)
It's the only value we use from that module, and this would ensure that
the value is actually imported and it's not potentially an undefined
value

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3982>
(cherry picked from commit 6cf67958a5f6003cb8d79ba5d120b15478455f75)

js/ui/overviewControls.js

index 355d4f6d6c2ee9cd2359e2db5d1558f1d792609b..7c0e527e3587840681f3f168e737589b1076d2e6 100644 (file)
@@ -8,7 +8,6 @@ import St from 'gi://St';
 
 import * as AppDisplay from './appDisplay.js';
 import * as Dash from './dash.js';
-import * as Layout from './layout.js';
 import * as Main from './main.js';
 import * as Overview from './overview.js';
 import * as SearchController from './searchController.js';
@@ -17,6 +16,8 @@ import * as WindowManager from './windowManager.js';
 import * as WorkspaceThumbnail from './workspaceThumbnail.js';
 import * as WorkspacesView from './workspacesView.js';
 
+import {STARTUP_ANIMATION_TIME} from './layout.js';
+
 export const SMALL_WORKSPACE_RATIO = 0.15;
 const DASH_MAX_HEIGHT_RATIO = 0.16;
 const VERTICAL_SPACING_RATIO = 0.02;
@@ -817,8 +818,6 @@ class ControlsManager extends St.Widget {
         // We can't run the animation before the first allocation happens
         await this.layout_manager.ensureAllocation();
 
-        const {STARTUP_ANIMATION_TIME} = Layout;
-
         // Opacity
         this.ease({
             opacity: 255,